package com.lzg.dimite;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author lizhigang Date: 2019/9/8 22:05
 * @description:
 */
public class Boss {
    public void commandCheckNumber(TeamLeader teamLeader){

        //模拟 Boss 一页一页往下翻页，TeamLeader 实时统计

        List<GongZi> courseList=new ArrayList<GongZi>();

        for(int i=0;i<20;i++){

            courseList.add(new GongZi());

        }

        teamLeader.checkNumberOfGongZI(courseList);

    }

    public void commandCheckNumber2(TeamLeader teamLeader){
        teamLeader.checkNumberOfGz();
    }
}
